<template>
  <div class="app-container">
    <el-row>
      <b style="font-size: 13px">客户标签：</b>
        <el-radio-group v-model="queryParams.level" size="small" @change="getList">
          <el-radio label="0">全部</el-radio>
          <el-radio label="1" >重点客户(80%)</el-radio>
          <el-radio label="2">意向客户(60%)</el-radio>
          <el-radio label="3">普通客户(40%)</el-radio>
          <el-radio label="4">其他(20%)</el-radio>
        </el-radio-group>
    </el-row>
    <el-row style="margin-top: 20px">
      <b style="font-size: 13px">跟进状态：</b>
      <el-radio-group v-model="queryParams.followType" size="small" @change="getList">
        <el-radio label="0">全部</el-radio>
        <el-radio label="1" >需求确定</el-radio>
        <el-radio label="2">意向客户</el-radio>
        <el-radio label="3">方案/报价</el-radio>
        <el-radio label="4">谈判审核</el-radio>
        <el-radio label="5">成交</el-radio>
        <el-radio label="6">无效</el-radio>
      </el-radio-group>
    </el-row>
    <el-row style="margin-top: 20px">
      <b style="font-size: 13px;display: inline-block;text-align: center">客户来源：</b>
      <el-radio-group v-model="queryParams.customerFrom" size="small" @change="getList">
        <el-radio label="0">全部</el-radio>
        <el-radio label="1" >广告</el-radio>
        <el-radio label="2">研讨会</el-radio>
        <el-radio label="3">搜索引擎</el-radio>
        <el-radio label="4">客户介绍</el-radio>
        <el-radio label="5">企业官网</el-radio>
        <el-radio label="6">新增</el-radio>
        <el-radio label="7">其他</el-radio>
      </el-radio-group>
    </el-row>
    <el-row style="margin-top: 20px">
      <b style="font-size: 13px;display: inline-block;text-align: center">创建时间：</b>
      <el-radio-group v-model="queryParams.shijian" size="small" @change="getList">
        <el-radio label="0">全部</el-radio>
        <el-radio label="1" >近3天</el-radio>
        <el-radio label="2">近7天</el-radio>
        <el-radio label="3">15天内</el-radio>
        <el-radio label="4">30天内</el-radio>
        <el-radio label="5">其他</el-radio>

      </el-radio-group>
    </el-row>


    <el-row >
      <el-form :model="queryParams" ref="queryForm" v-show="showSearch" :inline="true" style="text-align: right">
        <el-form-item>
          <el-button
            type="primary"
            icon="el-icon-plus"
            size="mini"
            plain
            @click="handleAdd"
            v-hasPermi="['system:role:add']"
          >新建</el-button>

        </el-form-item>
        <el-form-item>
          <el-button
            plain
            type="warning"
            icon="el-icon-upload2"
            size="mini"
            :loading="exportLoading"
            @click="handleImport"
            v-hasPermi="['system:role:export']"
          >导入</el-button>

        </el-form-item>
        <el-form-item label="" prop="roleName">
          <el-input
            v-model="queryParams.roleName"
            placeholder="请输入客户名称"
            clearable
            size="small"
          />
        </el-form-item>

        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>

        </el-form-item>
      </el-form>

    </el-row>

    <el-table  :row-class-name="xxxTableRowClassName"   v-loading="loading" :data="roleList" @selection-change="handleSelectionChange" stripe highlight-current-row :header-cell-style="{background:'#ffffff',color:'#555'}">
      <el-table-column  type="selection" width="55" align="center" />
      <el-table-column label="ID" prop="id" align="center" :show-overflow-tooltip="true" width="100" />
      <el-table-column label="用户名" prop="roleId" align="center" />
      <el-table-column label="客户类型" prop="roleId" align="center" />
      <el-table-column label="客户名称" prop="roleName" align="center" :show-overflow-tooltip="true" >
        <template slot-scope="scope">
          <span @click="handleUpdate(scope.row)" style="color: #3399cc;cursor:pointer">{{ scope.row.roleName}}</span>
        </template>
      </el-table-column>
      <el-table-column label="地区" prop="roleName" align="center" :show-overflow-tooltip="true"  />
      <el-table-column label="电话号码" prop="roleName" align="center" />
      <el-table-column label="跟进状态" prop="roleName" align="center" />
      <el-table-column label="客户来源" prop="roleName" align="center"/>
      <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="负责人" prop="roleName" align="center" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
        <template slot-scope="scope">

          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['system:role:edit']"
          >跟进</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-circle-check"
            @click="handleDataScope(scope.row)"
            v-hasPermi="['system:role:edit']"
          >转私有</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="shifanggonghai(scope.row)"
            v-hasPermi="['system:role:edit']"
          >释放公海</el-button>


        </template>
      </el-table-column>
    </el-table>
    <el-row style="position: absolute;left:30px;bottom: 0px;display: flex;align-items:center; width: 100%">

      <el-row>
        <b style="font-size: 15px"> 已选（{{xuanzhonglength}}条）  </b>
        <el-button type="primary" size="mini"  @click="handleDataScope">转私有</el-button>
        <el-button type="primary" size="mini" @click="shifanggonghai">释放公海</el-button>

      </el-row>
      <el-row style="position: absolute;right: 100px;top: -30px">
        <pagination
          v-show="total>0"
          :total="total"
          :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize"
          @pagination="getList"
        />
      </el-row>
    </el-row>

    <el-drawer
      title="我是标题"
      size="80%"
      :with-header="false"
      :visible.sync="drawer"
      direction="rtl">
      <div class="choutibody">
        <div class="choutibody-top">
         <div class="choutibody-top-top">
           <div class="choutibody-top-top-left">
             <img class="gongsiimg" src="../../../assets/jmcimg/ceshitopxiang.jpg" alt="">
             <!--<span class="gongsiname">聚梦科技公司</span>-->
             <el-button type="success" icon="el-icon-star-on" plain size="mini" style="margin-left: 20px">已关注</el-button>

           </div>
           <div class="choutibody-top-top-right">
             <el-button-group>
               <el-button plain size="mini"  type="primary" icon="el-icon-edit"  @click="handleAddxiugai">修改</el-button>
               <el-button plain size="mini"  type="primary" icon="el-icon-plus"  @click="handleAddlianxiren">新建联系人</el-button>
<!--               <el-dropdown @command="handleCommand">-->
<!--                 <el-button plain type="primary" size="mini">-->
<!--                 <i class="el-icon-more"></i>-->
<!--                 </el-button>-->
<!--                 <el-dropdown-menu slot="dropdown">-->
<!--                   <el-dropdown-item command="转移给他人">转移给他人</el-dropdown-item>-->
<!--                   <el-dropdown-item command="删除">删除</el-dropdown-item>-->
<!--                   <el-dropdown-item command="锁定">锁定</el-dropdown-item>-->
<!--                 </el-dropdown-menu>-->
<!--               </el-dropdown>-->
             </el-button-group>
           </div>
         </div>
          <div class="choutibody-top-bom">
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">客户类型</div>
              <div class="titlesun">默认业务类型</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">公司网址</div>
              <div class="titlesun">651651561561</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">联系人</div>
              <div class="titlesun">651651561561</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">电话</div>
              <div class="titlesun">季明聪</div>
            </div>


          </div>
          <div class="choutibody-top-bom">

            <div class="choutibody-top-bom-neirong">
              <div class="titlename">公司地址</div>
              <div class="titlesun">651651561561</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">用户名</div>
              <div class="titlesun">651651561561</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">创建时间</div>
              <div class="titlesun">季明聪</div>
            </div>
            <div class="choutibody-top-bom-neirong">
              <div class="titlename">ID</div>
              <div class="titlesun">季明聪</div>
            </div>


          </div>
        </div>
        <div style="width: 100%;background-color: #EEEEEE;height:10px;">

        </div>
        <div class="choutibody-bom">
          <div class="choutibody-bom-left">
            <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick" style="height:100%;overflow-y:auto;overflow-x:hidden;">
              <el-tab-pane name="0" label="线索信息"></el-tab-pane>
              <el-tab-pane name="1" label="公司详情"></el-tab-pane>
              <el-tab-pane name="2" label="其他联系人"></el-tab-pane>
              <el-tab-pane name="3" label="合同"></el-tab-pane>
              <!--             其他联系人-->
              <div style="padding: 10px" v-show="activeName==2">
                <el-table   style="margin-bottom: 50px" height="150" :row-class-name="xxxTableRowClassName"    :data="roleListsfxx"  stripe highlight-current-row :header-cell-style="{background:'#ffffff',color:'#555'}">

                  <el-table-column label="姓名" prop="roleName" align="center"   />
                  <el-table-column label="公司名称" prop="roleName" align="center" />
                  <el-table-column label="职务" prop="roleName" align="center" />
                  <el-table-column label="电话" prop="roleName" align="center"/>
                  <el-table-column label="手机" prop="roleName" align="center"/>
                  <el-table-column label="部门" prop="roleName" align="center" />
                  <el-table-column label="电子邮件" prop="roleName" align="center" />
                  <el-table-column label="所属销售" prop="roleName" align="center" />
                  <el-table-column label="创建日期" prop="roleName" align="center" />
                </el-table>
              </div>
              <!--             合同-->
              <div style="padding: 10px" v-show="activeName==3">
                <el-row style="text-align: right;margin-top: -20px">
                  <el-button
                    type="primary"
                    icon="el-icon-plus"
                    size="mini"
                    plain
                    @click="handleAddhetong">新建合同</el-button>
                </el-row>
                <el-table   style="margin-bottom: 50px" height="150" :row-class-name="xxxTableRowClassName"    :data="roleListsfxx"  stripe highlight-current-row :header-cell-style="{background:'#ffffff',color:'#555'}">

                  <el-table-column label="公司名称" prop="roleName" align="center"   />
                  <el-table-column label="用户名" prop="roleName" align="center" />
                  <el-table-column label="ID" prop="roleName" align="center" />
                  <el-table-column label="合同金额" prop="roleName" align="center"/>
                  <el-table-column label="订单数量" prop="roleName" align="center"/>
                  <el-table-column label="合同日期" prop="roleName" align="center" />

                  <el-table-column label="合同开始时间" prop="roleName" align="center" width="120px"/>
                  <el-table-column label="合同结束时间" prop="roleName" align="center" width="120px"/>
                  <el-table-column label="所属销售" prop="roleName" align="center" />
                  <el-table-column label="所属客服" prop="roleName" align="center" />



                </el-table>
              </div>
<!--              公司详情-->
              <div style="padding: 10px" v-show="activeName==1">
                <el-row style="font-size: 14px;color: #606266;">
                  <el-col :span="8">公司人数：
                    <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" />
                  </el-col>
                  <el-col :span="8">成立日期： <el-input  style="width:130px"   size="mini" v-model="roleNamecc" placeholder="请输入" /></el-col>
                  <el-col :span="8">企业类型： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
                <el-row style="font-size: 14px;color: #606266;margin-top: 20px">
                  <el-col :span="8">工商注册： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">统一社会信用代码： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">纳税识别号： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
                <el-row style="font-size: 14px;color: #606266;margin-top: 20px">
                  <el-col :span="8">组织机构代码： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">工商注册号： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">注册资本： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
                <el-row style="font-size: 14px;color: #606266;margin-top: 20px">

                  <el-col :span="8">销售额： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">订单数量： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">订单总金额： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
              </div>
<!--              线索信息-->
              <div style="padding: 10px" v-show="activeName==0">
                <el-row style="font-size: 14px;color: #606266;">
                  <el-col :span="8">来源： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">所在库： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">ID： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
                <el-row style="font-size: 14px;color: #606266;margin-top: 20px">
                  <el-col :span="8">绑定时间： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">绑定人： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                  <el-col :span="8">跟进状态： <el-input  class="huadongshuru" style="width:130px"   size="mini" v-model="formgenjin.roleName" placeholder="请输入" /></el-col>
                </el-row>
              </div>
              <el-divider content-position="center" >

                <span style="color: #1890ff">绑定/释放信息</span>
              </el-divider>
              <el-table   style="margin-bottom: 50px" height="150" :row-class-name="xxxTableRowClassName"    :data="roleListsfxx"  stripe highlight-current-row :header-cell-style="{background:'#ffffff',color:'#555'}">

                <el-table-column label="绑定时间" prop="roleName" align="center"   />
                <el-table-column label="动作" prop="roleName" align="center" />
                <el-table-column label="绑定人" prop="roleName" align="center" />
                <el-table-column label="操作人" prop="roleName" align="center"/>
                <el-table-column label="释放时间" prop="roleName" align="center"/>
                <el-table-column label="释放原因" prop="roleName" align="center" />

              </el-table>
              <el-divider content-position="center" >

                <span style="color: #1890ff">修改记录</span>
              </el-divider>
              <el-table   height="150" :row-class-name="xxxTableRowClassName"    :data="roleListxgjl"  stripe highlight-current-row :header-cell-style="{background:'#ffffff',color:'#555'}">
                <el-table-column label="修改时间" prop="roleName" align="center" />
                <el-table-column label="动作" prop="roleName" align="center" />
                <el-table-column label="修改说明" prop="roleName" align="center" />
                <el-table-column label="操作人" prop="roleName" align="center"/>
              </el-table>

            </el-tabs>

          </div>
          <div class="choutibody-bom-bom">
            <div class="genjintltle">跟进</div>
            <el-form ref="form" :model="formgenjin"  :rules="rules"  style="margin-top: 10px;padding-right: 40px;margin-left: 10px;" >
              <el-form-item label="跟进方式"  prop="roleName">
                <el-radio-group v-model="queryParams.roleName" size="small" @change="getListgenjin">
                  <el-radio label="0">电话</el-radio>
                  <el-radio label="1" >面谈</el-radio>
                  <el-radio label="2">邮件</el-radio>
                  <el-radio label="3">社交工具</el-radio>
                  <el-radio label="4">短信</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="客户标签"  prop="roleName">
                    <el-select style="width:100px" size="mini" v-model="formgenjin.roleName" placeholder="请选择">
                      <el-option
                        v-for="item in optionslkehubq"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="7">
                  <el-form-item label="联系人" >
                    <el-select  style="width:100px" size="mini" v-model="formgenjin.roleName" placeholder="请选择">
                      <el-option
                        v-for="item in optionlianxire"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value">
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="9">
                  <el-form-item label="电话" label-width="50px">
                    <el-input  style="width:130px" disabled  size="mini" v-model="formgenjin.roleName" placeholder="" />
                  </el-form-item>
                </el-col>
              </el-row>


              <el-form-item label="跟进详情" >
                <el-input  style="width: 100%"   type="textarea" :rows="2" size="mini" v-model="formgenjin.roleName" placeholder="请输入跟进详情" />
              </el-form-item>
              <el-row>
                <el-col :span="14">
                  <el-form-item label="下次跟进时间" >
                    <el-date-picker
                      size="mini"
                      v-model="formgenjin.roleName"
                      type="datetime"
                      placeholder="选择日期时间">
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="10" style="text-align: right">
                  <el-form-item label="" >
                    <el-button type="primary" size="mini" plain>发布</el-button>
                  </el-form-item>
                </el-col>
              </el-row>

            </el-form>
            <el-divider content-position="center">跟进详情</el-divider>
            <div  style="height:400px;overflow-y:auto;overflow-x:hidden;">
              <el-row class="genjinlisrt" v-for="item in 6">
                <div class="shijian">
                  2021-02-03
                </div>
                <div class="shijianbos">
                  <div class="shifenmiao">18.03</div>
                  <div class="zhongjianxian">
                    <img class="tubiain" src="../../../assets/jmcimg/ceshitopxiang.jpg" alt="">
                    <div class="shuxian"></div>
                  </div>
                  <div class="neirongqubb">
                    <div class="toubuimg">
                      <img class="toubuimgtubiain" src="../../../assets/jmcimg/ceshitopxiang.jpg" alt="">
                      <span class="name">季明聪</span>
                      <span class="namebaifang">拜访了客户</span>

                    </div>
                    <div class="geninxiangq">
                      今天打发士大夫大师傅士大夫士大夫士大夫手动阀手动阀手动阀手动阀手动阀撒旦
                    </div>
                  </div>

                </div>

              </el-row>
            </div>

          </div>
        </div>

      </div>
    </el-drawer>
    <el-dialog
      title="新建客户"
      :visible.sync="dialogVisible"
      :close-on-click-modal="false"
      width="650px">
      <el-form ref="form" :model="form" :rules="rules" label-width="100px"  :inline="true">
        <el-form-item label="客户名称" prop="roleName">
          <el-input  class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请输入客户名称" />
        </el-form-item>

        <el-form-item label="行业" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionshangye"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="城市" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionschengshi"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="详细地址" >
          <el-input  class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请输入详细地址" />
        </el-form-item>
        <el-form-item label="客户来源" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionslaiyuan"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="客户标签" prop="roleName">
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionshakehubiaq"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="联系人" prop="roleName">
          <el-input  class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请输入联系人" />
        </el-form-item>
        <el-form-item label="电话号码" prop="roleName">
          <el-input  class="tankaunginput" size="mini" type="number" v-model="form.roleName" placeholder="请输入电话号码" />
        </el-form-item>
        <el-form-item label="客户职位" >
          <el-input  class="tankaunginput" size="mini"  v-model="form.roleName" placeholder="请输入客户职位" />
        </el-form-item>

      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
        <el-button size="mini" type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>


    <!-- 用户导入对话框 -->
    <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
      <el-upload
        ref="upload"
        :limit="1"
        accept=".xlsx, .xls"
        :headers="upload.headers"
        :action="upload.url + '?updateSupport=' + upload.updateSupport"
        :disabled="upload.isUploading"
        :on-progress="handleFileUploadProgress"
        :on-success="handleFileSuccess"
        :auto-upload="false"
        drag
      >
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">
          将文件拖到此处，或
          <em>点击上传</em>
        </div>
        <div class="el-upload__tip" slot="tip">
          <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的客户数据
          <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
        </div>
        <div class="el-upload__tip" style="color:red" slot="tip">提示：仅允许导入“xls”或“xlsx”格式文件！</div>
      </el-upload>
      <div slot="footer" class="dialog-footer">
        <el-button size="mini" type="primary" @click="submitFileForm">确 定</el-button>
        <el-button size="mini" @click="upload.open = false">取 消</el-button>
      </div>
    </el-dialog>
<!--    新建合同-->
    <el-dialog
      title="新建合同"
      :visible.sync="dialogVisiblehetong"
      width="700px">
      <el-form ref="form" :model="formhetong" :rules="rules" label-width="100px"  :inline="true">
        <el-form-item label="公司名称" prop="roleName">
          <el-input  disabled class="tankaunginput" size="mini" v-model="formhetong.roleName" />
        </el-form-item>
        <el-form-item label="用户名" >
          <el-input  disabled class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder=""/>
        </el-form-item>
        <el-form-item label="ID" >
          <el-input  disabled class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder=""/>
        </el-form-item>
        <el-form-item label="合同单号" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入用户名"/>
        </el-form-item>
        <el-form-item label="合同金额" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="订单数量" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="签约日期" >
          <el-date-picker
            size="mini"
            style="width: 180px;"
            class="tankaunginput"
            v-model="formhetong.roleName"
            type="date"
            placeholder="选择日期">
          </el-date-picker>

        </el-form-item>
        <el-form-item label="合同单号" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同单号"/>
        </el-form-item>

        <el-form-item label="服务开始时间" >
          <el-date-picker
            size="mini"
            style="width: 180px;"
            v-model="formhetong.roleName"
            type="date"
            placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="服务结束时间" >
          <el-date-picker
            size="mini"
            style="width: 180px;"
            v-model="formhetong.roleName"
            type="date"
            placeholder="选择日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="所属销售" >
          <el-input disabled  class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder=""/>
        </el-form-item>
        <el-form-item label="所属客服" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionscfuke"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="上传资质" >
          <el-upload

            class="upload-demo shangchuanziji"
            drag
            action="https://jsonplaceholder.typicode.com/posts/"
            multiple>
            <i class="el-icon-upload"></i>
            <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
          </el-upload>
        </el-form-item>

      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisiblehetong = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisiblehetong = false">确 定</el-button>
      </span>
    </el-dialog>

    <!--    新建联系人-->
    <el-dialog
      title="新建联系人"
      :visible.sync="dialogVisiblelianxiren"
      width="700px">
      <el-form ref="form" :model="formhxinlianxiren" :rules="rules" label-width="100px"  :inline="true">

        <el-form-item label="姓名" prop="roleName">
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="公司名称" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="部门" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="职务" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="电话" prop="roleName" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="手机" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="电子邮件" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入订单数量"/>
        </el-form-item>
        <el-form-item label="所属销售" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionscsuxiaos"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" @click="dialogVisiblelianxiren = false">取 消</el-button>
        <el-button size="mini" type="primary" @click="dialogVisiblelianxiren = false">确 定</el-button>
      </span>
    </el-dialog>

    <!--    修改-->
    <el-dialog
      title="新建联系人"
      :visible.sync="dialogVisiblexiugia"
      width="700px">
      <el-form ref="form" :model="formhxinlixiugai" :rules="rules" label-width="100px"  :inline="true">

        <el-form-item label="客户类型" >
          <el-select class="tankaunginput" size="mini" v-model="form.roleName" placeholder="请选择">
            <el-option
              v-for="item in optionscsuxiaos"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="公司地址" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="公司网址">
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="用户名" >
          <el-input  disabled class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="联系人" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="电话" >
          <el-input   class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="创建时间" >
          <el-input  disabled class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
        <el-form-item label="ID">
          <el-input disabled  class="tankaunginput" size="mini" v-model="formhetong.roleName" placeholder="请输入合同金额"/>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button size="mini" @click="dialogVisiblexiugia = false">取 消</el-button>
        <el-button size="mini" type="primary" @click="dialogVisiblexiugia = false">确 定</el-button>
      </span>
    </el-dialog>



  </div>
</template>

<script>
import { listRole, getRole, delRole, addRole, updateRole, exportRole, dataScope, changeRoleStatus } from "@/api/system/role";
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
import { treeselect as deptTreeselect, roleDeptTreeselect } from "@/api/system/dept";
import {  importTemplate } from "@/api/system/user";
import { getToken } from "@/utils/auth";
export default {
  name: "Role",
  data() {
    return {
      formhxinlixiugai:{},
      //修改
      dialogVisiblexiugia:false,
      formhxinlianxiren:{},
      dialogVisiblelianxiren:false,
      dialogImageUrl: '',
      formhetong:{},
      dialogVisiblehetong:false,
      roleNamecc:'这是有数据的',
      formgenjin:{},
      xianshuxb:0,
      activeName: '0',
      //客户标签
      optionshakehubiaq:[
        {value:'1',label:'徐州'},
        {value:'2',label:'北京'},
        {value:'3',label:'火星'},
      ],
      optionscsuxiaos:[
        {value:'1',label:'徐州'},
        {value:'2',label:'北京'},
        {value:'3',label:'火星'},
      ],
      //所属客服
      optionscfuke:[
        {value:'1',label:'徐州'},
        {value:'2',label:'北京'},
        {value:'3',label:'火星'},
      ],
      //所属销售
      optionsxiaoshou:[
        {value:'1',label:'徐州'},
        {value:'2',label:'北京'},
        {value:'3',label:'火星'},
      ],
      //所在城市
      optionschengshi:[
        {value:'1',label:'徐州'},
        {value:'2',label:'北京'},
        {value:'3',label:'火星'},
      ],
      //联系人
      optionlianxire:[
        {value:'1',label:'联系人1'},
        {value:'2',label:'联系人2'},
        {value:'3',label:'联系人3'},

      ],
      //客户标签
      optionslkehubq:[
        {value:'1',label:'客户标签1'},
        {value:'2',label:'客户标签2'},
        {value:'3',label:'客户标签3'},
        {value:'4',label:'客户标签4'},
        {value:'5',label:'客户标签5'},

      ],

      //客户来源
      optionslaiyuan:[
        {value:'1',label:'客户来源1'},
        {value:'2',label:'客户来源2'},
        {value:'3',label:'客户来源3'},
      ],
      //行业数据
      optionshangye:[
        {value:'1',label:'行业1'},
        {value:'2',label:'行业2'},
        {value:'3',label:'行业3'},
      ],
      // 用户导入参数
      upload: {
        // 是否显示弹出层（用户导入）
        open: false,
        // 弹出层标题（用户导入）
        title: "",
        // 是否禁用上传
        isUploading: false,
        // 是否更新已经存在的用户数据
        updateSupport: 0,
        // 设置上传的请求头部
        headers: { Authorization: "Bearer " + getToken() },
        // 上传的地址
        url: process.env.VUE_APP_BASE_API + "/system/user/importData"
      },
      dialogVisible:false,
      drawer: false,

      xuanzhonglength:0,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        level:'0',
        followType:'0',
        customerFrom:'0',
        shijian:'0',
      },
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      //修改记录
      roleListxgjl: [
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
      ],
      //释放信息
      roleListsfxx: [
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
        {roleName:'测试数据'},
      ],
      // 角色表格数据
      roleList: [
        {roleName:'测试数据',id:21321321321231321321},
        {roleName:'测试数据',id:21321321321231321321},
        {roleName:'测试数据',id:21321321321231321321},
        {roleName:'测试数据',id:21321321321231321321},
        {roleName:'测试数据',id:21321321321231321321},
      ],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 是否显示弹出层（数据权限）
      openDataScope: false,
      menuExpand: false,
      menuNodeAll: false,
      deptExpand: true,
      deptNodeAll: false,
      // 日期范围
      dateRange: [],
      // 状态数据字典
      statusOptions: [],
      // 数据范围选项
      dataScopeOptions: [
        {
          value: "1",
          label: "全部数据权限"
        },
        {
          value: "2",
          label: "自定数据权限"
        },
        {
          value: "3",
          label: "本部门数据权限"
        },
        {
          value: "4",
          label: "本部门及以下数据权限"
        },
        {
          value: "5",
          label: "仅本人数据权限"
        }
      ],
      // 菜单列表
      menuOptions: [],
      // 部门列表
      deptOptions: [],

      // 表单参数
      form: {},
      defaultProps: {
        children: "children",
        label: "label"
      },
      // 表单校验
      rules: {
        roleName: [
          { required: true, message: "角色名称不能为空", trigger: "blur" }
        ],
        roleKey: [
          { required: true, message: "权限字符不能为空", trigger: "blur" }
        ],
        roleSort: [
          { required: true, message: "角色顺序不能为空", trigger: "blur" }
        ]
      }
    };
  },
  created() {
    this.getList();
    this.getDicts("sys_normal_disable").then(response => {
      this.statusOptions = response.data;
    });
  },
  methods: {
    //上传资质
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    //修改联系人
    handleAddxiugai(){
      this.dialogVisiblexiugia = true

    },
    //新建联系人
    handleAddlianxiren(){
      this.dialogVisiblelianxiren = true

    },
    //上传合同
    handleAddhetong(){
      console.log('上传合同')
      this.dialogVisiblehetong = true
    },
    handleClick(tab, event) {

      console.log('1111', this.activeName);
      this.xianshuxb = tab.index
    },
    //更多
    handleCommand(command) {
      this.$confirm('此客户将'+command+', 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: command+'成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消'+command
        });
      });
    },
    /** 导入按钮操作 */
    handleImport() {
      this.upload.title = "客户导入";
      this.upload.open = true;
    },
    /** 下载模板操作 */
    importTemplate() {
      importTemplate().then(response => {
        this.download(response.msg);
      });
    },
    // 文件上传中处理
    handleFileUploadProgress(event, file, fileList) {
      this.upload.isUploading = true;
    },
    // 文件上传成功处理
    handleFileSuccess(response, file, fileList) {
      this.upload.open = false;
      this.upload.isUploading = false;
      this.$refs.upload.clearFiles();
      this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
      this.getList();
    },
    // 提交上传文件
    submitFileForm() {
      this.$refs.upload.submit();
    },
    //更改斑马线颜色
    xxxTableRowClassName({row, rowIndex}) {
      if (rowIndex%2==0) {
        return 'statistics-warning-row';
      } else {
        return 'statistics-baise';
      }
    },
    //跟进监听
    getListgenjin(){

    },

    /** 查询角色列表 */
    getList() {
      this.loading = true;
      listRole(this.addDateRange(this.queryParams, this.dateRange)).then(
        response => {
          // this.roleList = response.rows;
          this.total = response.total;
          this.loading = false;
        }
      );
    },
    /** 查询菜单树结构 */
    getMenuTreeselect() {
      menuTreeselect().then(response => {
        this.menuOptions = response.data;
      });
    },
    /** 查询部门树结构 */
    getDeptTreeselect() {
      deptTreeselect().then(response => {
        this.deptOptions = response.data;
      });
    },
    // 所有菜单节点数据
    getMenuAllCheckedKeys() {
      // 目前被选中的菜单节点
      let checkedKeys = this.$refs.menu.getCheckedKeys();
      // 半选中的菜单节点
      let halfCheckedKeys = this.$refs.menu.getHalfCheckedKeys();
      checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys);
      return checkedKeys;
    },
    // 所有部门节点数据
    getDeptAllCheckedKeys() {
      // 目前被选中的部门节点
      let checkedKeys = this.$refs.dept.getCheckedKeys();
      // 半选中的部门节点
      let halfCheckedKeys = this.$refs.dept.getHalfCheckedKeys();
      checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys);
      return checkedKeys;
    },
    /** 根据角色ID查询菜单树结构 */
    getRoleMenuTreeselect(roleId) {
      return roleMenuTreeselect(roleId).then(response => {
        this.menuOptions = response.menus;
        return response;
      });
    },
    /** 根据角色ID查询部门树结构 */
    getRoleDeptTreeselect(roleId) {
      return roleDeptTreeselect(roleId).then(response => {
        this.deptOptions = response.depts;
        return response;
      });
    },
    // 角色状态修改
    handleStatusChange(row) {
      let text = row.status === "0" ? "启用" : "停用";
      this.$confirm('确认要"' + text + '""' + row.roleName + '"角色吗?', "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(function() {
        return changeRoleStatus(row.roleId, row.status);
      }).then(() => {
        this.msgSuccess(text + "成功");
      }).catch(function() {
        row.status = row.status === "0" ? "1" : "0";
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 取消按钮（数据权限）
    cancelDataScope() {
      this.openDataScope = false;
      this.reset();
    },
    // 表单重置
    reset() {
      if (this.$refs.menu != undefined) {
        this.$refs.menu.setCheckedKeys([]);
      }
      this.menuExpand = false,
        this.menuNodeAll = false,
        this.deptExpand = true,
        this.deptNodeAll = false,
        this.form = {
          roleId: undefined,
          roleName: undefined,
          roleKey: undefined,
          roleSort: 0,
          status: "0",
          menuIds: [],
          deptIds: [],
          menuCheckStrictly: true,
          deptCheckStrictly: true,
          remark: undefined
        };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.dateRange = [];
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.roleId)
      this.single = selection.length!=1
      this.multiple = !selection.length
      this.xuanzhonglength = selection.length
      console.log(selection)
    },
    // 树权限（展开/折叠）
    handleCheckedTreeExpand(value, type) {
      if (type == 'menu') {
        let treeList = this.menuOptions;
        for (let i = 0; i < treeList.length; i++) {
          this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value;
        }
      } else if (type == 'dept') {
        let treeList = this.deptOptions;
        for (let i = 0; i < treeList.length; i++) {
          this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value;
        }
      }
    },
    // 树权限（全选/全不选）
    handleCheckedTreeNodeAll(value, type) {
      if (type == 'menu') {
        this.$refs.menu.setCheckedNodes(value ? this.menuOptions: []);
      } else if (type == 'dept') {
        this.$refs.dept.setCheckedNodes(value ? this.deptOptions: []);
      }
    },
    // 树权限（父子联动）
    handleCheckedTreeConnect(value, type) {
      if (type == 'menu') {
        this.form.menuCheckStrictly = value ? true: false;
      } else if (type == 'dept') {
        this.form.deptCheckStrictly = value ? true: false;
      }
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.dialogVisible = true

    },
    /** 跟进按钮操作 */
    handleUpdate(row) {
     console.log('跟进按钮操作')
      this.drawer = true
    },
    /** 选择角色权限范围触发 */
    dataScopeSelectChange(value) {
      if(value !== '2') {
        this.$refs.dept.setCheckedKeys([]);
      }
    },
    //释放公海
    shifanggonghai(row){
      this.$confirm('此客户将释放公海, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '释放公海成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消释放公海'
        });
      });
    },
    /** 转私有数据权限操作 */
    handleDataScope(row) {
      this.$confirm('此客户将转为私有, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '转私有成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消转私有'
        });
      });
    },
    /** 提交按钮 */
    submitForm: function() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.roleId != undefined) {
            this.form.menuIds = this.getMenuAllCheckedKeys();
            updateRole(this.form).then(response => {
              this.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            this.form.menuIds = this.getMenuAllCheckedKeys();
            addRole(this.form).then(response => {
              this.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 提交按钮（数据权限） */
    submitDataScope: function() {
      if (this.form.roleId != undefined) {
        this.form.deptIds = this.getDeptAllCheckedKeys();
        dataScope(this.form).then(response => {
          this.msgSuccess("修改成功");
          this.openDataScope = false;
          this.getList();
        });
      }
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const roleIds = row.roleId || this.ids;
      this.$confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?', "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(function() {
        return delRole(roleIds);
      }).then(() => {
        this.getList();
        this.msgSuccess("删除成功");
      })
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$confirm('是否确认导出所有角色数据项?', "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        this.exportLoading = true;
        return exportRole(queryParams);
      }).then(response => {
        this.download(response.msg);
        this.exportLoading = false;
      })
    }
  }
};
</script>
<style lang="scss">

.shangchuanziji {
  .el-upload-dragger .el-icon-upload {
    font-size: 67px;
    color: #C0C4CC;
    margin: 12px 0 16px;
    line-height: 50px;
  }
  .el-upload-dragger {
    background-color: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 207px;
    height: 115px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;

  }
}
.huadongshuru {

  //.el-input__inner:hover {
  //  border: 1px solid #23b7e5;
  //}
  //.el-input__inner {
  //  border: none;
  //}

}
.genjinlisrt {

  padding-left: 20px;
  padding-right: 20px;
  .shijianbos {
    margin-top: 10px;
    display: flex;
    .neirongqubb {
      margin-left: 10px;
      background-color:#f9f9f9 ;
      min-height: 80px;
      width: 100%;
      .geninxiangq {
        padding:10px 50px;
        font-size: 12px;
      }
      .toubuimg {
        display: flex;
        align-items: center;
       padding: 10px;

        .name {
          color: #3399cc;
          font-size: 14px;
          margin-left: 10px;
        }
        .namebaifang {
          color: #8fa1b2;
          font-size: 12px;
          margin-left: 10px;
        }
        .toubuimgtubiain {
          width: 30px;
          height: 30px;
          border-radius: 100%;
        }
      }
    }

    .zhongjianxian {
      margin-left: 10px;
      display: flex;
      width: 26px;
      justify-content: center;
      flex-wrap: wrap;
      .shuxian {
        width: 1px;
        min-height: 100px;
        background-color: #cccccc;
      }
      .tubiain {
        width: 26px;
        height: 26px;
        border-radius: 3px;
      }
    }
    .shifenmiao {
      margin-right: 5px;
      color: #8fa1b2;
      font-size: 12px;
    }

  }
  .shijian {
    font-size: 14px;
    color: #00060f;

  }
}


.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #ffffff;
}
.el-table__row.statistics-warning-row {
  background: #F1FAFC;
}
.el-table__row.statistics-baise {
  background: #ffffff;
}
.el-table th, .el-table td {
  padding: 3px 0;
}
.el-table__row {
  height: 30px;
}

.choutibody {
  .choutibody-bom {
    background-color: #EEEEEE;
    position: relative;
    display: flex;
    height: 100%;
    .choutibody-bom-left {
      width: 60%;
      background-color: #ffffff;
    }
    .choutibody-bom-bom {
      width: 40%;
      background-color: #ffffff;
      margin-left: 10px;
      .el-form-item {
          margin-bottom: 5px;
      }
      .genjintltle {
        font-size: 14px;
        color: #1890ff;
        height: 40px;
        background-color: #F5F7FA;
        display: flex;
        align-items: center;
        padding-left: 20px;
      }
    }
  }

  .choutibody-top {
    -webkit-box-shadow: 0 1px 1px #d3d8db;
    -moz-box-shadow: 0 1px 1px #d3d8db;
    box-shadow: 0 1px 1px #d3d8db;
    .choutibody-top-bom {
      display: flex;
      align-items: center;
      padding-bottom: 10px;
      .choutibody-top-bom-neirong {
        width: 250px;
        margin-left: 80px;
        .titlesun {
          font-size: 14px;
          color: #475059;
          margin-top: 5px;
        }

        .titlename {
          color: #8fa1b2;
          font-size: 12px;
        }
      }

    }

    .choutibody-top-top {
      padding: 15px;
      padding-right: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .choutibody-top-top-left {
        display: flex;
        align-items: center;
        .gongsiname {
          font-size: 18px;
          font-weight: 400;
          padding-left: 10px;
          color: #333940;
        }
        .gongsiimg {
          width: 40px;
          height: 40px;
          border-radius: 100%;
        }

      }

    }
  }

}
.el-drawer__container {
  //top: 50px;

}
</style>
